package wh.threadlocal02;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2022/4/27 10:29
 * @description:
 * @version:
 */

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadLocalNormalUsage06 {

    public static void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(10);

        for (int i = 0; i <100 ; i++) {
            String finalI = i + "";
            executorService.submit(new Runnable() {
                @Override
                public void run() {
                    new Service1().process1(finalI);
                }
            });
        }
        executorService.shutdown();
    }
}
